package com.cyzy.controller;

import com.cyzy.domin.TClassify;
import com.cyzy.domin.TClassifyTwo;
import com.cyzy.dto.ResponseData;
import com.cyzy.service.TClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Tclass")
public class TClassifyController {

    @Autowired
    private TClassifyService classifyService;

    @RequestMapping("/getTClass")
    public ResponseData getTClassify(TClassify tClassify){
        return classifyService.getClassifyById(tClassify);
    }

    @RequestMapping("/getTClassTwo")
    public ResponseData getTClassTwo(TClassifyTwo tClassifyTwo){
        return classifyService.getClassifyTwoById(tClassifyTwo);
    }

}
